/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package digitaldreamers.games.ddmonsters.servers.gameserver.network.packets.sending;

import digitaldreamers.libraries.games.servers.networkmanagement.packets.sending.AbSendablePacket;
import digitaldreamers.games.ddmonsters.servers.gameserver.configurations.Configuration;
import java.io.DataOutputStream;
import java.io.IOException;

/**
 *
 * @author DaoLe
 */
public class STurnPhaseChangedPacket extends AbSendablePacket {
    
    private boolean m_bIsYourTurn;
    private int m_iPhase;
    
    public STurnPhaseChangedPacket(boolean bIsYourTurn, int iPhase) {
        m_bIsYourTurn = bIsYourTurn;
        m_iPhase = iPhase;
        mPacketId = Configuration.TURN_PHASE_CHANGED_PACKET_ID;
    }
    
    @Override
    public void writeData(DataOutputStream DOS) throws IOException {
        DOS.writeInt(mPacketId);
        DOS.writeBoolean(m_bIsYourTurn);
        DOS.writeInt(m_iPhase);
    }
}
